package com.suyx.job.service;

import java.util.List;

import org.springframework.data.domain.Sort;

import com.suyx.job.entity.Page;
import com.suyx.job.entity.TuInfo;
import com.suyx.job.service.base.IMyService;

/**
 * @Auther: lanyanhua
 * @Date: 2018/10/18 0018 11:41
 * @Description:
 */
public interface ITuInfoService extends IMyService<TuInfo,Integer> {

    Page findTuPage(TuInfo tuInfo,Integer page,Integer limit);

    List<TuInfo> findByDevice(String device,Sort sort);

    void deleteByDeviceAndStatus(String device,String status) ;
    
    List<TuInfo> findByRoleId(Integer roleId,Sort sort);
    
    void deleteByRoleIdAndStatus(Integer roleId,String status);
}
